package com.im.partchat.http.service;

import com.im.partchat.http.apiManager.DownApiManager;

import io.reactivex.Observable;
import io.reactivex.android.schedulers.AndroidSchedulers;
import io.reactivex.schedulers.Schedulers;
import okhttp3.ResponseBody;

/**
 * Created by fzl on 2017/6/29 0029.
 * VersionCode: 1
 * Desc:
 */

public class DownLoadService {



    public static Observable<ResponseBody> downLoadFile(String url) {
        return DownApiManager.getInstance().downloadPicFromNet(url)
                .observeOn(AndroidSchedulers.mainThread())
                .subscribeOn(Schedulers.io());
    }



}
